import request from '@/utils/request'


export function getCourseInfo(data) {
    return request({
        url: '/courseCenter/course/getCourseWithChapterAndCourseName',
        method: 'post',
        data
    })
}

export function addCourseMaterrial(data) {
    return request({
        url: '/courseCenter/courseMaterrial/addCourseMaterrial',
        method: 'post',
        data
    })
}

export function getCourseMaterrial(data) {
    return request({
        url: '/courseCenter/courseMaterrial/getCourseMaterrial',
        method: 'post',
        data
    })
}

export function deleteCourseMaterrial(data) {
    return request({
        url: '/courseCenter/courseMaterrial/deleteCourseMaterrial',
        method: 'post',
        data
    })
}